package fusing

var fusing_module  map[string]bool
var fusing_message map[string]bool

func Init(modules,messages []string) {
	for _,v := range(modules) {
		fusing_module[v] = true
	}

	for _,v := range(messages) {
		fusing_message[v] = true
	}	
}

func IsModuleFusing(name string) bool {
	_,ok := fusing_module[name]
	return ok
}

func IsMessageFusing(name string) bool {
	_,ok := fusing_module[name]
	return ok	
}

func init() {
	fusing_message = map[string]bool{}
	fusing_module = map[string]bool{}
}